+ add R/W Apple II Binary II archives - #124
Merged
Merged
Conversation
Hawkynt
force-pushed
the
feat/apple2-binaryii-archive
branch
3 times, most recently
from
August 30, 2026 01:13
0f467ef to
0e60a71
Compare
Binary II wraps each file in a 128-byte header carrying the ProDOS name, file and auxiliary type, dates and length, with the payload padded to the next block. Squeezed members are unpacked through the existing codec. The two projects that needed a reference to it got a Directory.Build.props each holding nothing but that reference. A Directory.Build.props does not inherit the one above it unless it says so, so both projects lost every repository-wide property, starting with TargetFramework. The reference goes in the project files, where their other formats are listed.
Hawkynt
force-pushed
the
feat/apple2-binaryii-archive
branch
from
August 30, 2026 01:25
0e60a71 to
dc9281f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds Apple II Binary II / BLU (
.bny/.bqy) as a first-class archive format.0A 47 4C, secondary02marker)FileFormat.Squeezebuilding blockautomode chooses Squeeze only when the 128-byte-rounded stored extent is smaller.QQSqueeze fallback when the compressed data flag is absentGenuine R/W
CanModifyis intentional. Binary II members are independently framed as128-byte header + payload rounded to 128 bytes, so modification does not require extract/re-create:The reader treats files-to-follow as metadata rather than the only parse delimiter so stale counters can be repaired safely during direct mutation.
Layout / cleanup
Implements
IArchiveLayoutMapfor per-record headers, payloads, and 128-byte padding. Defragmentation zeros member padding and trims trailing transport garbage without rewriting payloads.Tests
Coverage includes stored and Squeeze round trips, BLU
.QQcompatibility, directory synthesis, direct add/replace/remove, countdown repair, auto compression, ProDOS path normalization, encryption rejection, and trailing-padding cleanup.Format layout and historical behavior were cross-checked against Apple II File Type Note
$e0/8000as documented by CiderPress II; Squeeze uses the repository's existing managed implementation.